{extend name="index/index"}
{block name="content"}
<form action="{:url('admin/User/update', ['id'=>$data['id']])}" class="am-form" method="post">
  <fieldset>
    <legend>用户编辑</legend>
    <div class="am-form-group">
      <input type="hidden" name="_method" value="PUT" >
      <input type="hidden" name="id" value="{$data['id']}">
      <label for="doc-vld-name">昵称：</label>
      <input type="text" id="doc-vld-name" name="name" minlength="3" placeholder="输入昵称" class="am-form-field" value="{$data['name']}" required/>
      <label for="doc-vld-name">密码：</label>
      <input type="text" id="doc-vld-name" name="pass" minlength="3" placeholder="输入密码" class="am-form-field" required/>
      <label for="doc-vld-name">用户电话：</label>
      <input type="text" id="doc-vld-name" name="tel" placeholder="输入用户电话" class="am-form-field" value="{$data['tel']}" required/>
      <label for="doc-vld-name">用户邮箱：</label>
      <input type="text" id="doc-vld-name" name="email" placeholder="输入用户邮箱" class="am-form-field" value="{$data['email']}" required/>
      <label for="doc-vld-name">用户性别：</label>
      <input type="radio" name="sex" value="1" {if condition="$data['sex'] eq '1'"}checked{/if}/>女
      <input type="radio" name="sex" value="0" {if condition="$data['sex'] eq '0'"}checked{/if}/>男<br>
      <input type="submit" value="提交" class="am-btn am-btn-default am-btn-xs am-text-secondary">
    </div>
  </fieldset>
</form>
{/block}